const User = resolve =>{
	require.ensure(['./components/user.vue'],()=>{
		resolve(require('./components/user.vue'))
	})
}
const  News= resolve =>{
	require.ensure(['./components/news.vue'],()=>{
		resolve(require('./components/news.vue'))
	})
}
const Upload = resolve =>{
	require.ensure(['./components/UpLoad.vue'],()=>{
		resolve(require('./components/UpLoad.vue'))
	})
}
const Coment = resolve =>{
	require.ensure(['./components/coment.vue'],()=>{
		resolve(require('./components/coment.vue'))
	})
}
const Login = resolve =>{
	require.ensure(['./components/login.vue'],()=>{
		resolve(require('./components/login.vue'))
	})
}
const Product = resolve =>{
	require.ensure(['./components/product.vue'],()=>{
		resolve(require('./components/product.vue'))
	})
}


export const routes = [{
		path: '/',
		components: {
			default: User,
		},
	},
	{
		path: '/news',
		components: {
			default: News,
		},

	},
	{
		path: '/upload',
		components: {
			default: Upload,
		},

	},
	{
		path: '/coment',
		components: {
			default: Coment,
		},
		name:'coment'
	},
	{
		path: '/product',
		components: {
			default: Product,
		},
		name:'product'
	},
	{
		path: '/login',
		components: {
			default: Login,
		},
		name:'login'
	}
]